#include "cordermanager.h"

COrderManager::COrderManager() {}

qlonglong COrderManager::getSecond2now(QString vLocalOrderNum)
{
    if (!orders.contains(vLocalOrderNum))
    {
        return 0;
    }
    return orders[vLocalOrderNum]->getSecond2now();
}

qlonglong COrderManager::getSecond2Finishu(QString vLocalOrderNum)
{
    if (!orders.contains(vLocalOrderNum))
    {
        return 0;
    }
    return orders[vLocalOrderNum]->llSecond2End;
}

qlonglong COrderInRam::getSecond2now()
{
    return dtCal.secsTo(QDateTime::currentDateTime()) + llSecond2Cal;
}
